package baiwa.rta.service;

import baiwa.rta.model.DataTableModel;
import baiwa.rta.model.RMaccrModel;
import baiwa.rta.model.TowerModel;

import java.util.List;
import java.util.Map;
import org.springframework.transaction.annotation.Transactional;

public interface CarCardService {

	public List<RMaccrModel> getAllCarCard();

	@Deprecated
	public List<Map<String, Object>> getAllMapCarCard();

	public RMaccrModel getCarCardById(Integer accrid);

	@Transactional
	public void save(RMaccrModel model) throws Exception;

	@Transactional
	public boolean update(RMaccrModel model);

	@Transactional
	public boolean delete(RMaccrModel model);

	public TowerModel findRoomId(TowerModel towerModel);

	public int nextCarCardId();
	
	public DataTableModel<RMaccrModel> getDataTable(RMaccrModel model,int iDisplayStart,int iDisplayLength);
}
